package com.example.lotterysystem;

import com.example.lotterysystem.dao.dataobject.Encrypt;
import com.example.lotterysystem.dao.mapper.UserMapper;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;

/**
 * @auther falls_vc
 * description:
 * @date 2025/5/11  19:49
 */
@SpringBootTest
public class Sql {
    @Autowired
    private UserMapper userMapper;
    @Test
    void mailCount(){
        System.out.println("绑定个数："+userMapper.countByMail("123qq.com"));

    }
    @Test
    void phoneNumberCount() {
        System.out.println("手机号绑定个数："+userMapper.countByPhone(new Encrypt("11111111111")));
    }
}
